import request from '@/utils/request'
// 新增考试流程
export function addExamFlow(data) {
	return request({
		url: '/admin/article/exam/flow',
		method: 'post',
		data
	})
}
// 考试流程分页
export function pagingExamFlow(data) {
	return request({
		url: '/admin/article/exam/flow/paging',
		method: 'post',
		data
	})
}
// 考试流程列表
export function listExamFlow(data) {
	return request({
		url: '/admin/article/exam/flow/list',
		method: 'post',
		data
	})
}
// 考试流程详情
export function getExamFlowDetail(id) {
	return request({
		url: '/admin/article/exam/flow/' + id,
		method: 'get',
	})
}
// 修改考试流程
export function editExamFlow(data) {
	return request({
		url: '/admin/article/exam/flow',
		method: 'put',
		data
	})
}
// 批量删除考试流程
export function delExamFlow(idList) {
	return request({
		url: '/admin/article/exam/flow/' + idList,
		method: 'delete',
	})
}
// 上下架
export function publishExamFlow(data) {
	return request({
		url: '/admin/article/exam/flow/publish',
		method: 'put',
		data
	})
}

